%clear all;
clc;

load mnist_train_all;

tic
X = data(1:1000,:);
X = X';
[A,B] = knnsrch(X,10);
%[dist,nn] = findknn(double(data'),10);
toc